/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Biz;

import Dao.PathologyDAO;
import Entity.Doctor;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author cgzf
 */
public class DoctorBO {
    public List<Doctor> getDoctor() throws SQLException
    {
        return new PathologyDAO().getAllDoctor();
    }
    public void addDoctor(String D_name,String Address,int PhoneNo,String Specialization) throws SQLException
    {
        new PathologyDAO().AddDoctor(D_name, Address, PhoneNo, Specialization);
    }
    public void editDoctor(int DoctorID,String D_name,String Address,int PhoneNo,String Specialization) throws SQLException
    {
        new PathologyDAO().EditDoctor(DoctorID, D_name, Address, PhoneNo, Specialization);
    }
    public void deleteDoctor(int DoctorID) throws SQLException
    {
        new PathologyDAO().DeleteDoctor(DoctorID);
    }
    
}
